package router

import (
	"fresh-food/control"
	"fresh-food/pkg"
	"github.com/gin-gonic/gin"
)

func LoadRouter(r *gin.Engine) {
	group := r.Group("/food")
	{
		user := group.Group("/user")
		{
			user.POST("/sms", control.UserSms)
			user.POST("/login", control.UserLogin)
		}
		order := group.Group("/order")
		{
			pkg.JWTAuth("2209A")
			order.POST("/list", control.OrderList)
		}

	}
}
